package com.example.order.feign;

import com.example.model.vo.KDAppToken;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "service-kd", url = "http://erp.fh.com.cn:7707")
public interface KDFeignClient {


//        @PostMapping("/ierp/api/getAppToken.do")
//        String getAppToken(@RequestParam("appId") String appId,@RequestParam("appSecret") String appSecret,@RequestParam("tenantid") String tenantid,
//                           @RequestParam("accountId") String accountId, @RequestParam("language") String language);

    @PostMapping(value = "/erp/api/getAppToken.do")
    String getAppToken(@RequestBody KDAppToken kdAppToken);



}
